#ifndef DEFECT_SECTOR_H
#define DEFECT_SECTOR_H
#include "halconcpp/HalconCpp.h"
using namespace HalconCpp;

struct D_S
{


    //   **粗定位阈值
    float para1;
    //匹配分数
    float para2;
    //二次定位阈值
    float para3;
    //最外边内缩
    float para4;
    //外边崩缺面积
    float para5;
    //内部边内缩
    float para6;
    //内部缺陷阈值
    float para7;
    //内部缺陷面积
    float para8;
};
struct D_S_PLACE
{
    HalconCpp::HTuple x1;
    HalconCpp::HTuple y1;
    HalconCpp::HTuple x2;
    HalconCpp::HTuple y2;
    HalconCpp::HTuple hvCCDHandle;
};

class Defect_Sector
{
public:
    Defect_Sector();
    int D_Sector(HObject Img,HTuple ModelID,HObject &OutImg);
    D_S m_part;
    D_S_PLACE m_part2;
	bool Inner=true;
	bool Outer=true;
	HTuple AreaValue;

};

#endif // DEFECT_SECTOR_H
